home *** CD-ROM | disk | FTP | other *** search
- Path: knoware.nl!usenet
- From: koos_pol@compuware.com (Koos Pol)
- Newsgroups: comp.lang.rexx
- Subject: Re: Locking a file?
- Date: 17 Apr 1996 07:01:51 GMT
- Organization: Compuware Europe, Amsterdam
- Distribution: inet
- Message-ID: <4l250v$l61@news.knoware.nl>
- References: <4l12kf$4m0@panix2.panix.com>
- Reply-To: koos_pol@compuware.com (Koos Pol)
- NNTP-Posting-Host: willow.uniface.nl
- X-Newsreader: IBM NewsReader/2 v1.02
-
- In <4l12kf$4m0@panix2.panix.com>, rcpj@panix.com (Pierre Jelenc) writes:
- >
- >How can I lock a file in OS/2 so that one and only one process at a time
- >can modify it or its EA's? Would it be effective to mark the file as
- >"hidden" or "system", or is there a possibility of one process getting a
- >false reading between the time the other process decides to lock the file
- >and the time when the OS actually changes the attribute?
- >
- >TIA
- >
- >Pierre
- >--
- >Pierre Jelenc Know what's weird? Day by day nothing seems to
- >rcpj@panix.com change, but pretty soon everything is different.
- >pierre@nycbeer.org Calvin & Hobbes
- > http://www.columbia.edu/~pcj1/
-
-
- Open the file in WRITE mode. (Atomic action)
-
- Koos
- -----------------------------------------------------------------
- S.C. Pol Phone: +31 20 3116122
- PC Systems Administrator Fax : +31 20 3116133
- Compuware Europe email: koos_pol@compuware.com
- Amsterdam
- The Netherlands "Please DO disturb. I was working!"
- -----------------------------------------------------------------
-
-